package org.example.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.example.pojo.outBoundItem;

@Mapper
public interface OutboundDetailMapper {
    /**
     * 插入一条出库单详情
     * @param item
     */
    void insert(outBoundItem item);

    /**
     * 根据出库单id删除出库单详情
     * @param orderId
     */
    @Delete("delete from outbound_detail where order_id = #{orderId}")
    void delete(String orderId);
}
